package shun.demo.gson.model;

import com.google.gson.annotations.SerializedName;

import java.util.Arrays;
import java.util.List;

/**
 * Created by chen on 1/18/14.
 */
public class FeaturedInfo {

    @SerializedName("time")
    private long mTime;

    @SerializedName("head")
    List<Banner> mHeaders;

    @SerializedName("recommend")
    List<Banner> mRecommends;

    public long getTime() {
        return mTime;
    }

    public void setTime(long time) {
        mTime = time;
    }

    public List<Banner> getHeaders() {
        return mHeaders;
    }

    public void setHeaders(List<Banner> headers) {
        mHeaders = headers;
    }

    public List<Banner> getRecommends() {
        return mRecommends;
    }

    public void setRecommends(List<Banner> recommends) {
        mRecommends = recommends;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("\ntime=");
        sb.append(mTime);
        sb.append("\nheader=");
        sb.append(Arrays.toString(mHeaders.toArray()));
        sb.append("\nrecommend=");
        sb.append(Arrays.toString(mRecommends.toArray()));
        return sb.toString();
    }
}
